package com.huilan.hgt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huilan.hgt.entity.Email;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huilan.hgt.util.PageUtil;

import java.util.List;

/**
 * <p>
 * 邮件表 服务类
 * </p>
 *
 * @author ghy
 * @since 2018-11-02
 */
public interface EmailService extends IService<Email> {

    /**
     * 查询邮件发送历史
     * @return
     * @param page
     */
    IPage<Email> selectEmailHistory(PageUtil<Email> page);


    /**
     * 发送邮件
     * @param email
     * @param code
     * @param contextPath
     */
    boolean sendMail(Email email, String code, String contextPath);
}
